<?php

namespace App\Http\Requests\ApiV2;

class PartsCategoryRequest extends BaseRequest
{
    public function rules()
    {
        return [
            'categoryName' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'categoryName.required' => __('分类名称必须有'),
        ];
    }

    public function filldata()
    {
        return [
            'categoryName' => $this->input('categoryName'),
            'remark' => $this->input('remark'),
        ];
    }
}
